@extends('backend.assets.master')

@section('page-title', "新增文章")

@section('page-content')
<!-- BEGIN SAMPLE PORTLET CONFIGURATION MODAL FORM-->
<!-- END SAMPLE PORTLET CONFIGURATION MODAL FORM-->
<!-- BEGIN PAGE CONTAINER-->
<div class="container-fluid">
    <!-- BEGIN PAGE HEADER-->
    <div class="row-fluid">
        <div class="span12">
            <!-- BEGIN PAGE TITLE & BREADCRUMB-->
            <h3 class="page-title">
                Blank Page <small>blank page</small>
            </h3>
            <ul class="breadcrumb">
                <li>
                    <i class="icon-home"></i>
                    <a href="index.html">Home</a>
                    <i class="icon-angle-right"></i>
                </li>
                <li>
                    <a href="#">Layouts</a>
                    <i class="icon-angle-right"></i>
                </li>
                <li><a href="#">Blank Page</a></li>
            </ul>
            <!-- END PAGE TITLE & BREADCRUMB-->
        </div>
    </div>
    <!-- END PAGE HEADER-->
    <!-- BEGIN PAGE CONTENT-->
    <div class="row-fluid">
        <div class="span9">
            <div class="portlet box blue ">
                <div class="portlet-title">
                    <div class="caption"><i class="icon-reorder"></i>添加文章</div>
                    <div class="tools">
                        <a href="javascript:;" class="collapse"></a>
                        <a href="javascript:;" class="reload"></a>
                    </div>
                </div>
                <div class="portlet-body form" style="display: block;">
                    <!-- BEGIN FORM-->
                    <form action="{{ url('backend/posts') }}" method="post" class="form-horizontal">
                        <div class="control-group">
                            <label class="control-label">标题</label>
                            <div class="controls">
                                <input class="span9 m-wrap" id="" name="post_title" type="text">
                                <span class="help-inline"></span>
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label">正文</label>
                            <div class="controls">
                                <textarea class="span9 m-wrap" name="post_content" style="min-height: 321px"></textarea>
                                <span class="help-inline">请使用Markdown语法</span>
                            </div>
                        </div>
                        {{ csrf_field() }}
                        <div class="form-actions">
                            <button type="submit" class="btn blue"><i class="icon-ok"></i> 保存</button>
                            <button type="button" class="btn">取消</button>
                        </div>
                    </form>
                    <!-- END FORM-->
                </div>
            </div>
        </div>
    </div>
    <div class="row-fluid">
        <div class="span9">
            <div class="portlet box green ">
                <div class="portlet-title">
                    <div class="caption"><i class="icon-reorder"></i>摘要</div>
                    <div class="tools">
                        <a href="javascript:;" class="expand"></a>
                        <a href="javascript:;" class="reload"></a>
                    </div>
                </div>
                <div class="portlet-body form" style="display: none;">
                    <!-- BEGIN FORM-->
                    <form action="{{ url('backend/posts') }}" method="post" class="form-horizontal">
                        <div class="control-group mb0">
                            <label class="control-label hidden">文章摘要</label>
                            <div class="controls full">
                                <textarea class="span12 m-wrap" name="post_intro" style="min-height: 56px"></textarea>
                            </div>
                        </div>
                        {{ csrf_field() }}
                    </form>
                    <!-- END FORM-->
                </div>
            </div>
        </div>
    </div>

    <!-- END PAGE CONTENT-->
</div>
<!-- END PAGE CONTAINER-->
@stop
